import { clearLocal, clearSession } from 'storage-sync-lite'
import useLocalStorage from './useLocalStorage'
export * from './useSessionStorage'

export const clearLocalStorage = () => {
  clearLocal()
}

export const clearSessionStorage = () => {
  clearSession()
}

export const clearAll = () => {
  clearLocalStorage()
  clearSession()
}

export default useLocalStorage
